package joe.works.pluginframework.support.nshandler;

import joe.works.pluginframework.support.ExtensionPointAnnotationProcessor;

import org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser;
import org.springframework.beans.factory.xml.BeanDefinitionParser;
import org.w3c.dom.Element;

/**
 * BeanDefinitionParser for strategyAnnotationProcessor tag.
 * <ol>
 * 	<li>&lt;strategyAnnotationProcessor/&gt;</li>
 * </ol>
 * 		
 * @author josseyj
 *
 */
public class StrategyAnnotationProcessorBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser implements BeanDefinitionParser {

	@Override
	protected Class getBeanClass(Element element) {
		return ExtensionPointAnnotationProcessor.class;
	}

	@Override
	protected boolean shouldGenerateId() {
		return true;
	}


}
